set(CPACK_PACKAGE_VENDOR "TileDB Inc.")
set(CPACK_PACKAGE_VERSION "@TILEDB_VERSION@")

set(CPACK_INCLUDE_TOPLEVEL_DIRECTORY OFF)

# Enable HASH
set(CPACK_PACKAGE_CHECKSUM "SHA256")

set(PACKAGE_VERSION $ENV{TILEDB_PACKAGE_VERSION})
if(NOT PACKAGE_VERSION)
    message(FATAL_ERROR "In order to package TileDB specify environment variable TILEDB_PACKAGE_VERSION")
endif()

set(CPACK_SOURCE_PACKAGE_FILE_NAME "${CPACK_SOURCE_PACKAGE_FILE_NAME}-${PACKAGE_VERSION}")
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_FILE_NAME}-${PACKAGE_VERSION}")
